#include "CRect.h"
#include <QDebug>
CRect::CRect()
{

}

void CRect::setXY(int x, int y)
{
    this->x = x;
    this->y = y;
}
void CRect::setWH(int w, int h)
{
    this->w = w;
    this->h = h;
}

void CRect::drawFigure(QPainter *painter)
{
    // qDebug() << x << ":" <<y;
    painter->drawRect(x, y, w, h);
}

CRect::~CRect()
{
}
